package com.wk2un11.entity;

import java.sql.Date;

public class News {
	private int id;
	private Date time;
	private String title;
	private String content;
	private String homeFlag;
	public News(int id, Date time, String title, String content, String homeFlag) {
		super();
		this.id = id;
		this.time = time;
		this.title = title;
		this.content = content;
		this.homeFlag = homeFlag;
	}
	public News(int id2, String time2, String title2, String content2, String homeFlag2) {
		// TODO Auto-generated constructor stub
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getHomeFlag() {
		return homeFlag;
	}
	public void setHomeFlag(String homeFlag) {
		this.homeFlag = homeFlag;
	}
	@Override
	public String toString() {
		return "News [id=" + id + ", time=" + time + ", title=" + title + ", content=" + content + ", homeFlag="
				+ homeFlag + "]";
	}
}
